package com.wing.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wing.product.model.entity.ProOutsourcingOrderProduct;
import com.wing.product.model.entity.ProOutsourcingOrderProductDetail;
import com.wing.product.model.response.ProOutsourcingOrderProductDetailGroupVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 委外订单-产品
 * @author hz
 */
@Mapper
public interface ProOutsourcingOrderProductDetailDao extends BaseMapper<ProOutsourcingOrderProductDetail> {
    /**
     * 查询委外订单-产品-物料
     * @param ids 产品id列表
     * @return 分组后的物料
     */
    List<ProOutsourcingOrderProductDetailGroupVo> getProductDetailInfoBy(@Param("ids") List<Long> ids);
}
